home *** CD-ROM | disk | FTP | other *** search
- Path: news.tu-ilmenau.de!usenet
- From: "Eberhardt.Krueger" <ai108>
- Newsgroups: comp.lang.c
- Subject: Re: 80x50 screen mode problems
- Date: 12 Apr 1996 12:27:45 GMT
- Organization: Technische Universitaet Ilmenau
- Message-ID: <4kli81$mfh@link.rz.tu-ilmenau.de>
- References: <4ki9jh$a6f@news.voicenet.com>
- NNTP-Posting-Host: wx-7-rtk.rz.tu-ilmenau.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; Linux 1.2.13 i386)
- X-URL: news:4ki9jh$a6f@news.voicenet.com
-
- deaton@cygnus.rsabbs.com wrote:
- ---snip---
- >I'm sure it has something to do with the fact that
- >I'm using double the screen memory and rows, because it printf()'s fine so long as I don't set the cursor past (24,79), the normal screen memory.
- >
- ---snip---
-
- Hi.
-
- The reason for this strange behaviour is not the larger amout of memory you
- use.
- VGA cards have 256 K as a minimum and some of them support text modes up to
- 132x60. Your problem is this: You change the size of the screen by setting the
- a smaller font. Ok. But you didn't tell DOS that it can work ( and in fact it
- has to work) from now on with 50 rows and printf uses usually the intterupt 21h
- functions to display its strings. Here a two things to do:
- 1. There is a BIOS variable to set. It contains the number of rows on screen.
- Does it cantain the right value? 50 or 49 I don't remember.
- 2. There is a DOS call for setting the rows to 50. The same that is done after
- calling "mode con: rows=50".
- Look in your book about PC bios and DOS where you got the other interrupt
- functions from and try on these solutions above. I think the first should work.
- If not try the second or both.
-
- Hope this helps
-
- Lars
-
-